﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TVBox源合并工具.DTO
{
    public class Content
    {
        /// <summary>
        /// 点播
        /// </summary>
        public List<Site> sites { get; set;}

        /// <summary>
        /// 直播
        /// </summary>
        public List<string> lives { get; set; }

        /// <summary>
        /// 过滤规则
        /// </summary>
        public List<string> rules { get; set; }

        /// <summary>
        /// 解析
        /// </summary>
        public List<string> parses { get; set; }

        /// <summary>
        /// VIP解析标识
        /// </summary>
        public List<string> flags { get; set; }

        /// <summary>
        /// 广告过滤
        /// </summary>
        public List<string> ads { get; set; }
    }


    public class Site
    {
        /// <summary>
        /// 源名称
        /// </summary>
        public string sourceName { get; set; }

        /// <summary>
        /// 点播Key
        /// </summary>
        public string key { get; set; }
        /// <summary>
        /// 点播名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 点播类型(0：xml 1：json 2：爬虫源 3：自定义爬虫 4：服务器爬虫)
        /// </summary>
        public int type { get; set; }

        /// <summary>
        /// 站点内容
        /// </summary>
        public string text { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Enabled { get; set; }
    }
}
